import 'package:animated_splash_screen/animated_splash_screen.dart';
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'package:some_flut/home_page.dart';

class SplashPage extends StatelessWidget {
  const SplashPage({super.key});

  @override
  Widget build(BuildContext context) {
    return AnimatedSplashScreen(
      splash: Center(child: Lottie.asset('assets/animation/splash.json')),
      nextScreen: HomePage(),
      splashIconSize: 400,

      duration: 3000,
      backgroundColor: Colors.white,
    );
  }
}
